package de.dhbw.tinf11b.vfb;

import java.util.LinkedList;
import java.util.List;

public class Course {
	private String name;
	private int year;
	private String room;
	private Curriculum curriculum; // enthaelt Studiengang-Daten
	private String courseDirector; // entspricht Studiengangsleiter
	private List<Student> students = new LinkedList<Student>();
	
	public Course(String name, int year, String room, Curriculum curriculum, String courseDirector) {
		this.name = name;
		this.room = room;
		this.year = year;
		this.curriculum = curriculum;
		this.courseDirector = courseDirector;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}

	public Curriculum getCurriculum() {
		return curriculum;
	}

	public void setCurriculum(Curriculum curriculum) {
		this.curriculum = curriculum;
	}

	public String getCourseDirector() {
		return courseDirector;
	}

	public void setCourseDirector(String courseDirector) {
		this.courseDirector = courseDirector;
	}

	public List<Student> getStudents() {
		return students;
	}
	/* no setter: student is attached to course in Student.setCourse() */

}
